package com.lvmama.pangolin.entity.core;

/**
 * 通用商品基类
 */
public class BaseCommodity {
    /**
     * 产品id
     */
    public String productId;
    /**
     * 商品id
     */
    public String commodityId;
    /**
     * 商品名称
     */
    public String commodityName;
    /**
     * 商品城市
     */
    public String cityCode;
    /**
     * 商品价格
     */
    public String salePrice;
    /**
     * 商品类型：例如：当商品为酒店时 - 为房型，为跟团游时 - 为票据类型
     */
    public String commodityType;
    /**
     * 商品的公司
     */
    public String companyCode;
    /**
     * 根据名称相似度打分
     */
    public double nameScore;
    /**
     * 根据类型相似度打分
     */
    public double typeScore;
    /**
     * 根据价格相似度打分
     */
    public double priceScore;

    /**
     * 根据是否同一城市打分
     */
    public double cityScore;
    /**
     * 商品排序评分
     */
    public double sortScore;

    public String getBusinessCode() {
        return businessCode;
    }

    public void setBusinessCode(String businessCode) {
        this.businessCode = businessCode;
    }

    /**
     * 商品业务编码
     */
    public String businessCode;



    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getCommodityId() {
        return commodityId;
    }

    public void setCommodityId(String commodityId) {
        this.commodityId = commodityId;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getCityCode() {
        return cityCode;
    }

    public void setCityCode(String cityCode) {
        this.cityCode = cityCode;
    }

    public String getSalePrice() {
        return salePrice;
    }

    public void setSalePrice(String salePrice) {
        this.salePrice = salePrice;
    }

    public String getCommodityType() {
        return commodityType;
    }

    public void setCommodityType(String commodityType) {
        this.commodityType = commodityType;
    }

    public String getCompanyCode() {
        return companyCode;
    }

    public void setCompanyCode(String companyCode) {
        this.companyCode = companyCode;
    }

    public double getNameScore() {
        return nameScore;
    }

    public void setNameScore(double nameScore) {
        this.nameScore = nameScore;
    }

    public double getTypeScore() {
        return typeScore;
    }

    public void setTypeScore(double typeScore) {
        this.typeScore = typeScore;
    }

    public double getPriceScore() {
        return priceScore;
    }

    public void setPriceScore(double priceScore) {
        this.priceScore = priceScore;
    }

    public double getCityScore() {
        return cityScore;
    }

    public void setCityScore(double cityScore) {
        this.cityScore = cityScore;
    }

    public double getSortScore() {
        return sortScore;
    }

    public void setSortScore(double sortScore) {
        this.sortScore = sortScore;
    }

    @Override
    public String toString() {
        return "BaseCommodity{" +
                "productId='" + productId + '\'' +
                ", commodityId='" + commodityId + '\'' +
                ", commodityName='" + commodityName + '\'' +
                ", cityCode='" + cityCode + '\'' +
                ", salePrice='" + salePrice + '\'' +
                ", commodityType='" + commodityType + '\'' +
                ", companyCode='" + companyCode + '\'' +
                ", nameScore=" + nameScore +
                ", typeScore=" + typeScore +
                ", priceScore=" + priceScore +
                ", cityScore=" + cityScore +
                ", sortScore=" + sortScore +
                ", businessCode='" + businessCode + '\'' +
                '}';
    }
}
